#python operator
Explore tagged Tumblr posts
Text
source - https://twitter.com/woofknight
#Operation#Monty Python#Monty Python Day#International Monty Python Status Day#May 10#Monty Python Status Day
117 notes
·
View notes
Text
I don't think I've ever put all my terrible "Borderlands 3 meets Monty Python" stuff up here, have I. Well, now I have.
#borderlands 3#borderlands fanart#digital art#zane flynt#zane the operative#amara#moze#borderlands fl4k#fl4k#fl4k the beastmaster#patricia tannis#cl4p tp#claptrap#monty python#lilith the firehawk#lilith#tyreen calypso#sir hammerlock#maya the siren#krieg#krieg the psycho#some crossover nonsense#sal posts an art
246 notes
·
View notes
Text
growing up and learning how to do math with normal, regular calculators that aren't programmed to do order of operations has made me the worst programmer ever. i add an obnoxious amount of parentheses bc i refuse to trust anything other than myself to get the order of operations correct
#i think python is able to do some order of operations?#but i'm not sure#and don't care#i will be adding parentheses for ever <3#zip quips
8 notes
·
View notes
Text
I really feel like the new got7 song might become a hit and I really hope it does because it could remind kpop companies that they can make music that’s simple but good in its simplicity
#got7#to elaborate#I think kpop bg music right now operates on the idea that you have to make music as crazy as you can to catch people’s attention#I think python is an example of a song that speaks for itself#and is just solid#it’s either boring or too much#and python feels like a simple song that actually makes sense
17 notes
·
View notes
Text
Monty Python as Operation Mincemeat: The Musical
(Oh, you just know that I have a new favourite musical)
Montague: Eric Idle
Charles: Terry Jones
Jean: Michael Palin
Hester: Graham Chapman
Bevan: John Cleese
8 notes
·
View notes
Text
Wilma again
I have ongoing issues with the Linux Mint installation on the laptop I use for software development and blogging.
You may recall I tried upgrading to version 22 (code name: Wilma), encountered a graphics regression, and had to revert the upgrade using TimeShift. Since then, my Linux experience hasn't been quite right. While troubleshooting an issue, I uninstalled Python; this broke APT, causing routine software updates to fail.
Yesterday I created a new partition on the HDD and attempted a clean install of Wilma there. After several tries, I suspect that my largest USB thumb drive (NXT brand, purchased in January 2024) suffers from data corruption.
Believe it or not, my 2nd-largest thumb drive is too small to hold the 2.9 GByte ISO image, so this morning I'm off to buy a new thumb drive.
#laptop#linux mint#wilma#timeshift#linux#upgrade#python#usb#partition#nxt#storage devices#believe it or not#installation#apt#operating systems#system administration
7 notes
·
View notes
Link
Mastering Arithmetic Operators in Python
This article provides a comprehensive exploration of Python's primary arithmetic operators, elucidating their functions and practical applications. From basic addition and subtraction to more complex operations like exponentiation and modulus, each operator is explained with clear examples and detailed explanations. The article goes beyond numeric calculations, demonstrating how these operators can be used with strings and lists to perform concatenations, repetitions, and mergers.
By understanding and mastering these arithmetic operators, readers can effectively manipulate data, perform mathematical operations, and build more intricate algorithms. Whether they are beginners or intermediate Python programmers, this article serves as a valuable reference for honing their programming skills and expanding their understanding of Python's core capabilities.
#Python#Arithmetic Operators#Addition#Subtraction#Multiplication#Division#Modulus#Floor Division#Exponentiation#Programming
3 notes
·
View notes
Text
Look, if someone shows me a video of an improperly kept animal, they're getting a lecture.
If someone tells me about how they got bit by an animal, I'm going to ask questions until I can explain (in detail) how that was their own fault.
Too many people have too little knowledge about the behavior and well-being of animals, and it pisses me off.
Even like "easy" or "common" animals like cats and dogs. People just dont teach kids how to interact with them.
I've met a few too many people who defend abusing hamsters because they can't admit that maybe they weren't well-versed on hamster care at 4 years old. Perhaps they were misinformed.
Torture to be a fan of any exotic animal when it's like. 90% of the footage of them is gonna be from dodo videos of people illegally keeping them as housepets . Really wish I could enjoy this video of a lynx but I also kinda wish everyone involved would die
#100% of people who get bit by ball pythons are dumb and have no understanding of how they operate#ah yes#tell me more about how you did not use feeding tongs to give the rat to the animal with poor vision#the animal which navigates based on seeing heat and movement#it went for your hand did it?#because your warm hand smelled like a rat?#and let go immediately upon realizing that your hand was#in fact#not the yummy rat it wanted#oh yeah what a vicious creature#so dangerous
24K notes
·
View notes
Text
It's Not Just An Operator...It's a Ternary Operator!
It's Not Just An Operator...It's a Ternary Operator!
What is the ternary operator? Why is it such a beloved feature across so many programming languages? If you’ve ever wished you could make your code cleaner, faster, and more elegant, this article is for you. Join us as we dive into the fascinating world of the ternary operator—exploring its syntax, uses, pitfalls, and philosophical lessons—all while sprinkling in humor and examples from different…
#application-developement#c-sharp#coding#coding-logic#java#javascript#learn-application-development#micropython#programming#programming-logic#programming-operators#python#software-developement#software-development
0 notes
Text
addicted to watching videos about people doing high-level and hardware programming i can't even comprehend but thinking its so cool and sexy,,,
#shut the heck up#about hecks hecking life#doing this instead of working on my websitehsdldsk#“i have GOT to make my own operating system” <- guy who cries everytime they open python
1 note
·
View note
Text
not gonna lie I hate javascript's === operator less than python's //
#this is probably mostly because I don't think I've run into issues with == before#the same is NOT true for python's / operator#(i was using int(thing/thing2) instead of thing//thing2 but with really big nums so I was encountering floating point precision errors 💀)
0 notes
Text
Harnessing Linux for Data Science: Integrating R, Python, and Machine Learning
Linux is the most appropriate OS for data research since it is portable, expansible and complies with many different open-source software. In this respect, machine learning frameworks can be easily linked to the powerful computation languages such as R and Python in Linux to let data scientists fully optimise the resourceful processing efficiency and model construction. It is now time to consider how these technologies improve the productivity of data science processes. They offer a less rigorous process when clients begin to employ Linux as their foundation, coupling the utility of Python with the statistician might of R. They also improve the understanding, in the process of raising production.
0 notes
Text
Getting Started with Python: A Beginner's Guide (pt 2)
They say teaching is the best way to learn. Consider subscribing to the website!
Expanding Your Knowledge: Collections and Control Flow In Part 1 of our beginner’s guide to Python, we covered the basics of variables, data types, and conditional statements. Now, let’s dive deeper into collections like lists, tuples, and dictionaries, as well as control flow mechanisms such as loops and functions. Lists: More Than Just Arrays As mentioned earlier, a list is a collection of…
#Beginner#Coding#Dictionaries#Functions#Getting started with Python#Introduction to Python programming#Learn Python#Lists#Loops#Programming#Python#Python basics#Python conditional statements#Python control structures#Python data types#Python for beginners#Python operators#Python variables#Tuples
0 notes
Text
How I feel trying to figure out how to manipulate images using Pillow

#pictures#please feel free to ignore this#Jake meets world#Thank god I'm already at least a little familiar with Python and NumPy or I would really mcfreaking lose it#The fun issue I'm having rn is that when I rotate an image the new one has no file type#so I can't compare it to anything#I don't think computers were meant to process pictures we have strayed too far from god's light#Messaging my professor to tell him I refuse to do the devil's work#At least I can get basic operations to work like *checks notes* identifying if two pictures are the same 🫠
0 notes
Text
Reminds me of something I wrote in Python a while back. Basically I got a list numbers and I needed to return a list list of booleans (or ints where every value is just 1 or 0 of course), where the output contains every combination such that the first input_list[0] values are all the same and the next input_list[1] values are all the same etc.
So if the input is [2, 5, 3] the output should be
[[T,T,T,T,T,T,T,T,T,T],
[T,T,T,T,T,T,T,F,F,F],
[T,T,F,F,F,F,F,T,T,T],
[T,T,F,F,F,F,F,F,F,F],
[F,F,T,T,T,T,T,T,T,T],
[F,F,T,T,T,T,T,F,F,F],
[F,F,F,F,F,F,F,T,T,T],
[F,F,F,F,F,F,F,F,F,F]]
The proper python way to do this is probably to use some numpy function, or some other bollocks I know nothing about. What I did was (variable names changed, because they were actually good names and told you what they represented, but you don't need to know what this code was used for so you get input_list and this_one) :
res: list[list[int]] = []
input_list_len = len(input_list)
for i in range(2 ** input_list_len):
this_one: list[int] = []
for j in range(input_list_len):
this_one += [(i >> j) & 0b1] * input_list[j]
result.append(this_one)
return result
PROGRAMMERS OF ALL KINDS AND SHAPES, PLEASE UNDERSTAND THIS
A code that doesn't have comments, even if it's well written, is not always very good code. When you want to optimize your code, you're might have to write ugly stuff sometimes ! Look at what data oriented design can produce for example. When optimization introduces unreadability, even if everything else is amazingly written, you need to add comments.
Anyway, use your cli tools on me plz, im cool, im pretty, look at me, blip bloop, blip bloop ❤️💾
#When I complain about python being unreadable I am talking to myself#My python is the worst because I use bitwise operators on the same line as += and * on a list#I just can't help myself#I spend so long explaining this code
102 notes
·
View notes